import React from 'react';
import {
    Text,
} from 'react-native';
import LinearGradient from 'react-native-linear-gradient'


const LinearGradientView = ({style,colors,start = {x:0,y:0},end = {x:0,y:1},locations,children})=>{
    return (
        <LinearGradient
            start={start}
            end={end}
            locations={locations}
            colors={colors}
            style={style}>
            {children}
        </LinearGradient>
    )
}

export default LinearGradientView
